<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<com:THead>
<!-- in cases only if setting 'utf-8' in application.xml doesn't work  -->
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
	<!-- Load libraly for Genesis -->
	<script type="text/javascript" src="assets/js/prototype.js"></script> 
    <script type="text/javascript" src="assets/js/Genesis/Common.js"></script>
    
    <script type="text/javascript" src="assets/js/Genesis/Image.js"></script>
    <script type="text/javascript" src="assets/js/Genesis/Content.js"></script>
    <script type="text/javascript" src="assets/js/Genesis/Flash.js"></script>
    <script type="text/javascript" src="assets/js/Genesis/Music.js"></script>
    <script type="text/javascript" src="assets/js/Genesis/Movie.js"></script>
	<script type="text/javascript" src="assets/js/Genesis/ButtonImage.js"></script>
	<script type="text/javascript" src="assets/js/Genesis/ExternalEmbeded.js"></script>
    
    <script type="text/javascript" src="assets/js/Genesis/AnimationObject.js"></script>
    <script type="text/javascript" src="assets/js/Genesis/AnimationContainer.js"></script>
    <script type="text/javascript" src="assets/js/Genesis/AnimationThread.js"></script>
    <script type="text/javascript" src="assets/js/Genesis/Genesis.js"></script>
	
	<script type="text/javascript" src="assets/js/Genesis/FixPngImage/pngHack.mini.js"></script>
    <!-- End Load libraly for Genesis -->
    
    <!-- PlugIn -->
	<script type="text/javascript" src="assets/js/Genesis/Options/RWXml.js"></script>
    <script type="text/javascript" src="assets/js/Genesis/Options/Toolbar.js"></script>
	<script type="text/javascript" src="assets/js/Genesis/Options/PropertyBar.js"></script>
	<script type="text/javascript" src="assets/js/Genesis/Options/ImageViewBar.js"></script>
    <!-- End Load PlugIn -->
	
	<!-- External Libraly-->
	<script type="text/javascript" src="assets/js/whizzywig/whizzywig.js"></script>
	<script type="text/javascript">
	    //CONFIGURE
	    cssFile="assets/js/whizzywig/simple.css";
	    buttonPath="assets/js/whizzywig/btn/";
	    var myButtons="fontsize bold italic underline | color hilite | bullet number link | menu";
	    //var myButtons="bold italic underline | color hilite | bullet number link";
		//END CONFIG

	    // For resize explorer
	    function findTop(id) { 
	      obj = o(id); 
	      var top = 0;
		  if(obj != null)
		  {
			if (obj.offsetParent) top = obj.offsetTop;
			while (obj = obj.offsetParent) top += obj.offsetTop; 
	      }
		  return top;
	    }
	</script>
<!-- End External Libraly-->
</com:THead>
	<body class = "template">
		<com:TForm>
			<div id="outerwrapper">
				<div id="page">
					<div id="upper">
						<div class="alignLeft">
								<ul class = "bk_menu_list">
									<!-- Un-logged in Function -->
									<li class="LogoAvatar">
										<com:TImage ImageUrl="assets/Pic/logo.png"  />
									</li>
									<li><com:THyperLink Text="Home" Visible="<%= $this->User->IsGuest %>"
										NavigateUrl="<%= $this->Service->constructUrl('users.MainSB') %>" />
									</li>
									<li><com:THyperLink Text="Login" Visible="<%= $this->User->IsGuest %>"
										NavigateUrl="<%= $this->Service->constructUrl('users.LoginUser') %>" />
									</li>
									<!-- Logged in Function -->
									<li><com:THyperLink Text="Home"  ID="header_home" Visible="<%= !$this->User->IsGuest %>"
										NavigateUrl="<%= $this->Service->constructUrl('users.HomeUser',array('id' => $this->user->ID)) %>" />
									</li>
									<li><com:THyperLink Text="Profile"  ID="header_profile"  Visible="<%= !$this->User->IsGuest %>"
										NavigateUrl="<%= $this->Service->constructUrl('users.ProfileUser',array('id' => $this->user->ID)) %>" />
									</li>
									<li><com:THyperLink Text="Friends" ID="header_friends" Visible="<%= !$this->User->IsGuest %>"
										NavigateUrl="<%=  $this->Service->constructUrl('users.FriendsUser',array('id' => $this->user->ID))  %>"	/>
									</li>
									<li><com:THyperLink Text="My Books" ID="header_books" Visible="<%= !$this->User->IsGuest %>"
										NavigateUrl="<%=  $this->Service->constructUrl('users.BooksUser',array('id' => $this->user->ID))  %>" />
									</li>
									<li><com:THyperLink Text="Images" ID="header_images" Visible="<%= !$this->User->IsGuest %>"
										NavigateUrl="<%=  $this->Service->constructUrl('users.ImageContainer',array('id' => $this->user->ID))  %>" />
									</li>
									<li><com:THyperLink Text="Group" Visible="<%= !$this->User->IsGuest %>"
										NavigateUrl="<%= $this->Service->constructUrl('users.ProfileUser') %>"  />
									</li>
									<li><com:THyperLink Text="Event" Visible="<%= !$this->User->IsGuest %>"
										NavigateUrl="<%= $this->Service->constructUrl('users.ProfileUser') %>"/>
									</li>
									<li><com:TLinkButton Text="Logout" Visible="<%= !$this->User->IsGuest %>"
										OnClick="logoutButtonClicked"									
										CausesValidation="false" />
									</li>
								</ul>
						</div>
						<com:TPanel CssClass="alignRight" DefaultButton="SearchButton">
							<ul class = "bk_menu_list">
								<li><com:THyperLink Text="Register" CssClass="linkStyle"
									NavigateUrl="<%= $this->Service->constructUrl('users.Register') %>"
									Visible="True" /></li>
								<li><com:TTextBox Visible="true" ID="searchTxt"/></li>
								<li><com:TButton ID="SearchButton" Text="Search" onClick="btnSearchClicked"   /></li>
								<li><com:THyperLink Text="Feedback" CssClass="linkStyle"
										Visible="true"/></li>	
							</ul>
						</com:TPanel>
					</div>
					<!--  end of upper div -->
					<!-- <div id="Logo">
					</div> -->
					<div id="main">
						<com:TContentPlaceHolder ID="Main" />
					</div>
					<div id="footer1">
						Copyright &copy; 2009 Bookapon Development Team. 
						<br/><%= $this->Application->Parameters['AppVersion'] %>
					<div>
				</div>
			</div>
		</com:TForm>
	</body>
</html>